package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.TravelComment;
import cn.wolfcode.wolf2w.domain.UserInfo;
import cn.wolfcode.wolf2w.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ITravelCommentService {

    void save(TravelComment travelComment);

    void delete(String id);

    void update(TravelComment travelComment);

    TravelComment get(String id);

    List<TravelComment> list();

    Page<TravelComment> query(TravelCommentQuery qo);
    // 查询对应游记里面的评论
    List<TravelComment> queryByTravelId(String travelId);
}
